/*
package com.example.demo.commons.core.robot;

import com.github.benmanes.caffeine.cache.Caffeine;

import java.util.concurrent.TimeUnit;

public class DingTalkHandler {

    private static final Cache<String, DingRobotHelper> dingTalkClientCache = Caffeine.newBuilder()
            .expireAfterAccess(30, TimeUnit.MINUTES)
            .maximumSize(100L)
            .build();

    public static DingRobotHelper getDingRobotHelper(String token, String secret) {
        return dingTalkClientCache.get(token, k -> new DingRobotHelper(token, secret));
    }
}
*/
